<template>
    <div>
        <el-breadcrumb separator="/">
            <el-breadcrumb-item v-for="(item, index) in breadList">
                <router-link to="/welcome" v-if="index == 0">
                    {{ item.meta.title }}
                </router-link>
                <span v-else>{{ item.meta.title }}</span>
            </el-breadcrumb-item>
        </el-breadcrumb>
    </div>
</template>

<script setup>
import { computed } from 'vue';
import { useRoute } from 'vue-router';

let route = useRoute();
const breadList = computed(() => route.matched);
</script>

<style lang="scss" scoped></style>
